package com.itwn.mapper;

import com.itwn.entity.Cinema;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface CinemaMapper {
    int deleteByPrimaryKey(Integer cinemaId);

    int insert(Cinema record);

    Cinema selectByPrimaryKey(Integer cinemaId);

    List<Cinema> selectAll();

    int updateByPrimaryKey(Cinema record);

    int findCinemaHallId(@Param("cinemaId") Integer cinemaId, @Param("htId") Integer htId);

    List<Cinema> selectByCon(@Param("name") String name, @Param("phone") String phone, @Param("area") String area);

    int updateStateById(Integer id);
}